home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / xcmd / rinaldds.sit / Listoid 1.4 (US) / cards.xml < prev    next >
Text File  |  1991-02-15  |  11KB  |  123 lines

  1. card_3055.xml
  2. <?xml version="1.0" encoding="utf-8" ?>
  3. <!DOCTYPE card PUBLIC "-//Apple, Inc.//DTD card V 2.0//EN" "" >
  4. <card>
  5.     <id>3055</id>
  6.     <filler1>0</filler1>
  7.     <bitmap>BMAP_3273.pbm</bitmap>
  8.     <cantDelete> <false /> </cantDelete>
  9.     <showPict> <true /> </showPict>
  10.     <dontSearch> <false /> </dontSearch>
  11.     <owner>2661</owner>
  12.     <link rel="stylesheet" type="text/css" href="stylesheet_2387.css" />
  13.     <part>
  14.         <id>1</id>
  15.         <type>field</type>
  16.         <visible> <true /> </visible>
  17.         <dontWrap> <false /> </dontWrap>
  18.         <dontSearch> <false /> </dontSearch>
  19.         <sharedText> <false /> </sharedText>
  20.         <fixedLineHeight> <true /> </fixedLineHeight>
  21.         <autoTab> <false /> </autoTab>
  22.         <lockText> <true /> </lockText>
  23.         <rect>
  24.             <left>69</left>
  25.             <top>68</top>
  26.             <right>434</right>
  27.             <bottom>252</bottom>
  28.         </rect>
  29.         <style>scrolling</style>
  30.         <autoSelect> <false /> </autoSelect>
  31.         <showLines> <false /> </showLines>
  32.         <wideMargins> <false /> </wideMargins>
  33.         <multipleLines> <false /> </multipleLines>
  34.         <reservedFamily> 0 </reservedFamily>
  35.         <titleWidth>0</titleWidth>
  36.         <icon>0</icon>
  37.         <textAlign>left</textAlign>
  38.         <font>Geneva</font>
  39.         <textSize>9</textSize>
  40.         <textStyle>plain</textStyle>
  41.         <textHeight>12</textHeight>
  42.         <name></name>
  43.         <script></script>
  44.     </part>
  45.     <part>
  46.         <id>5</id>
  47.         <type>button</type>
  48.         <visible> <true /> </visible>
  49.         <reserved5> 0 </reserved5>
  50.         <reserved4> 0 </reserved4>
  51.         <reserved3> 0 </reserved3>
  52.         <reserved2> 0 </reserved2>
  53.         <reserved1> 0 </reserved1>
  54.         <enabled> <true /> </enabled>
  55.         <rect>
  56.             <left>174</left>
  57.             <top>281</top>
  58.             <right>343</right>
  59.             <bottom>311</bottom>
  60.         </rect>
  61.         <style>roundrect</style>
  62.         <showName> <true /> </showName>
  63.         <highlight> <false /> </highlight>
  64.         <autoHighlight> <true /> </autoHighlight>
  65.         <sharedHighlight> <true /> </sharedHighlight>
  66.         <family>0</family>
  67.         <titleWidth>0</titleWidth>
  68.         <icon>0</icon>
  69.         <textAlign>center</textAlign>
  70.         <font>Chicago</font>
  71.         <textSize>12</textSize>
  72.         <textStyle>plain</textStyle>
  73.         <name>Listoid</name>
  74.         <script>on mouseUpif there is not a window "TheList"thenset cursor to watchListoid "TheList",cd fld "List"wait 1 secrepeat 50get loc of window "TheList"add 4 to item 1 of itadd 2 to item 2 of itset loc of window "TheList" to itset selectedLine of window "TheList" to random (20)end repeatwait 1 secset rect of window "TheList" to "50,50,250,200"wait 1 secset rect of window "TheList" to "200,110,312,248"put "NO,ONE,CON,DIS" into Listput "0 3 5,6,7 1,2,4,6" into Selrepeat with i=1 to 4put "Selection Mode =" && item i of Listset selectionMode of window "TheList" to item i of Listset selectedLine of window "TheList" to word i of Selwait 1 secend repeatput "Try by yourself now..."end ifend mouseUp</script>
  75.     </part>
  76.     <part>
  77.         <id>16</id>
  78.         <type>field</type>
  79.         <visible> <true /> </visible>
  80.         <dontWrap> <false /> </dontWrap>
  81.         <dontSearch> <false /> </dontSearch>
  82.         <sharedText> <false /> </sharedText>
  83.         <fixedLineHeight> <true /> </fixedLineHeight>
  84.         <autoTab> <false /> </autoTab>
  85.         <lockText> <false /> </lockText>
  86.         <rect>
  87.             <left>417</left>
  88.             <top>256</top>
  89.             <right>512</right>
  90.             <bottom>342</bottom>
  91.         </rect>
  92.         <style>scrolling</style>
  93.         <autoSelect> <false /> </autoSelect>
  94.         <showLines> <false /> </showLines>
  95.         <wideMargins> <false /> </wideMargins>
  96.         <multipleLines> <false /> </multipleLines>
  97.         <reservedFamily> 0 </reservedFamily>
  98.         <titleWidth>0</titleWidth>
  99.         <icon>0</icon>
  100.         <textAlign>left</textAlign>
  101.         <font>Geneva</font>
  102.         <textSize>9</textSize>
  103.         <textStyle>plain</textStyle>
  104.         <textHeight>12</textHeight>
  105.         <name>List</name>
  106.         <script></script>
  107.     </part>
  108.     <content>
  109.         <layer>card</layer>
  110.         <id>1</id>
  111.         <text>                                                 Listoid 1.4                                          by Fr├⌐d├⌐ric RINALDI  and the faithfull help of Beno├«t WIDEMANN for WDEF and CDEF resourcesDESCRIPTION------------  Listoid XCMD displays a list in a windoid.SYNTAX-------    Listoid  <WName>[,<List>[,<WStyle>][,<X,Y[,Z,T]>][,<NO|ONE|CON|DIS>]               [,<selected line(s)>][<fontName[,size]>]]PARAMETERS------------   Only first param is needed. Order of params 3 to 7 doesn't matter, since the XCMD is able to recognize them.   WName is a string giving the windoid name. Many windoids can be opened by using different names.   List is a return or comma delimited string that will be displayed. Listoid provides an automatic separator recognition.   WStyle is a string defining the window style. Allowed styles are : plain, zoom, roundRect, rect, shadow, windoid, windoidZoom, bigWindoid, bigWindoidZoom, Rinaldoid, RinaldoidZoom (Rinaldoid is the same as windoid, except that it displays the window title). All window styles are floating, except plain, zoom and roundRect. A windoid or Rinaldoid style window will have small scrollbars, while other styles will use standard size. Default is RinaldoidZoom if Rinaldoid WDEF resource is present, windoidZoom if not found.   <X,Y[,Z,T]> will be a point or a rect, and will define position and/or size of the windoid. Coordinated are card-relative. If omitted, windoid will appear with standard size at "0,10".   <NO|ONE|CON|DIS> defines the selection mode (no selection, one at a time, may but adjacent, many disjoint). Default is ONE.   <selected line(s)> is an integer or a comma separated list of integers. It defines the selected line(s) when the windoid appears. Default is 1, but 0 can be used to have no selection at start.   <fontName[,size]> is the name of font and its size to use. Default is Geneva 10.   Using "!" and "?" as parameter will return an online help (resp. copyright and syntax).USING-----   Listoid is stand alone, no linked resource is needed. Meanwhile, this stack contains a WDEF and a CDEF resource that are recognized by the XCMD if present. The WDEF allows to have an enhanced windoid-type window displaying title, while the CDEF is useful to get nice-looking scroll arrows for small scroll bars. So, these resources are optional, and for aesthetic purpose only. If you copy them, their ID can be set to any value but don't change their name.HINT :   If you use a rect ot shadow style window, placing it on a card can simulate a smart HyperCard list field.   If no rectangle param is used, the size of the window will be set accordingly to the longest string contained in the list.  Clicking on item(s) in the windoid sends a "ListoidSelect" message followed by the clicked word(s) and the Listoid name.. This message can be trapped using a handler :     on ListoidSelect What,Where       if  Where is "MyList" and What is ...     end ListoidSelectNOTE : in order to avoid HyperCard's confusion, existing quotes in What param are automatically changed to single quote.   When a windoid is opened, the "openListoid" message is sent, followed by the windoid name. This allows to define window properties before it is shown, since the message can be trapped using a handler :     on openListoid Which       if Which is "MyWindow" then...     end openListoid   When a windoid is close, the "closeListoid" message is sent, followed by the windoid name. This message can be trapped using a handler :     on closeListoid Which       if Which is "MyWindow" then...     end closeListoidHINT : the card script contains a "on ControlKey" handler that allows selection of first item when typing a key in conjunction with control key. For best result, the list must be sorted.   It is now possible to send any string to search for to the window using :  ΓÇ£send "string" to window <WName>ΓÇ¥   If the string is found, it will be highlighted int the list. Look for "on controlKey" handler in the card script, type Control+Key to try it.   Like any XWindow, Listoid has properties that can be get and set thru HyperTalk.   ΓÇ£properties of window "name"ΓÇ¥ will return an item list of all allowed properties :   ΓÇó loc                  : windoid's position according to card   ΓÇó visible            : windoid's visibility   ΓÇó text                : windoid's text   ΓÇó rect                : windoid's position and size according to card   ΓÇó selectedLine    : line number(s) selected   ΓÇó selectionMode : selection mode (NO|ONE|CON|DIS)If an error occurs, external can return :     "Error : Unrecognized parameter"     "Error : Missing window name"     "Error : Duplicate window name"     "Error : Empty parameter"     "Error : Unable to create XWindow"     "Error : XWindows not implemented"HISTORY--------1.4 :ΓÇó Added window style parameterΓÇó Added "openListoid" messageΓÇó Added searching capabilitiesΓÇó Added quote filter for ListoidSelect message parametersΓÇó Fixed rect/globalRect property to not show window if invisibleΓÇó Added support of Rinaldoid WDEF and CDEF1.3 :ΓÇó Added font name and size parameter1.1 :ΓÇó Window title is now displayedΓÇó Added window name parameterΓÇó Window name is passed along with ListoidSelect message.ΓÇó Added closeListoid message--------------------------------------------------------------------This (these) external(s) is (are) FreeWare,allowing unlimited use in any non-commercial stack. You just need in this case to mention the author's name and copyright in your stack.Any commercial use must be licensed and aknowledged by the author.                                  ┬⌐ F. Rinaldi - 1989,1990AppleLink: RINALDI1        CalvaCom : FR10        Compuserve : 71170,2111</text>
  112.     </content>
  113.     <content>
  114.         <layer>card</layer>
  115.         <id>16</id>
  116.         <text>AboutADBLightsAuxWindowBarButtonBeepSoundBreakSportChangeCursChangeMenuCheckMenuCloseResForkColorColumnizeCombineFilesCommInitCommWriteHyperSoundImportPICTInitMIDIKillResKillResIDLookupATMakeICONMakeRandomMenuChangeMenuCheckMenuInsertMenuInstallMenuMgrMenuRemoveMenuSetModDialogModResCopyMountMultiScrollMungeMCTBNewFolderOpenSPortPopUpPicturePostEventPrFieldPrintClipPrintFieldPrintFldPrintrectPrintTextProgressProgressPromptPromptPutAlertPutClipboardReceiveATRegisterATRenameFileResChngInfoResCopyResCopyTypesResDeleteResetMIDIResetPrinterResetSPortRestartSafeShutDownSaySayPhoneticScanSendATSendSerialSendSPortSetSetDeskSetDialogSetModeSetPitchSetPVolumeSetRateSetVolumeShowAlertShowCursorShowDialogShowMenuShutDownSoundCapToResSpeakSTARStatusDialogStdFileStopTabsSuspendinstallTalkTalkConvertTalkPhoneticTextStreamTitleBarTrapReturnTurnSpeechOffTurnSpeechOnTxMIDIUnmountXcleanXprintFieldZoomRect</text>
  117.     </content>
  118.     <name></name>
  119.     <script>on ListoidSelect What,Whereput Where & " : " & Whatend ListoidSelecton closeListoid Whichput "You close windoid ΓÇ£" & Which & "ΓÇ¥"end closeListoidon controlKey Whatif there is a window "TheList"then send numToChar(What + 64) to window "TheList"end ControlKey</script>
  120. </card>
  121.  
  122.  
  123.